using AutoMapper;
using S.O.Domain;
using S.O.Api.Write.Application.Command.User;
using S.O.Api.Write.Application.Command.Role;
using S.O.Api.Write.Application.Command.Permission;
using S.O.Domain.RBAC;

namespace S.O.Api.Write
{
    public class RBACAutoMapper : Profile
    {
        public RBACAutoMapper()
        {
            CreateMap<CreateUserCommand, UserModel>();
            CreateMap<CreateRoleCommand, RoleModel>();
            CreateMap<CreatePermissionCommand, PermissionModel>();
            CreateMap<UpdatePermissionCommand, PermissionModel>();
            CreateMap<UpdateRoleCommand, RoleModel>();
            CreateMap<UpdateUserCommand, UserModel>();
        }
    }
}
